package com.ubxtech.core.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Date;

/**
 * https://blog.csdn.net/chaojunma/article/details/122595612
 * @author Victor.Xiao
 * @since 2023-08-23 12:00
 **/
@Data
@Schema(title = "LogDTO", description = "日志信息")
public class LogDTO {
    /**请求来源**/
    protected String origin;

    /**访问实例*/
    protected String targetServer;

    /**请求路径*/
    protected String requestPath;

    /**请求方法*/
    protected String requestMethod;

    /**协议 */
    protected String schema;

    /**请求类型 */
    protected String requestContentType;

    /**请求头 */
    protected String headers;

    /**请求体*/
    protected String requestBody;

    /**响应体*/
    protected String responseData;

    /**请求ip*/
    protected String ip;

    /**IP所属城市*/
    protected String city;

    /**请求时间*/
    protected Date requestTime;

    /**响应时间*/
    protected Date responseTime;

    /**执行时间*/
    protected long executeTime;

    /**路由配置*/
    protected String routeConfig;

    /**响应状态*/
    protected String status;

    /**上游系统请求id*/
    protected String pTraceId;

    /**全流程请求id*/
    protected String xTraceId;

}
